Calculate clip region when window goes viewable
authorAlexander Larsson <alexl@redhat.com>
Mon, 20 Jul 2009 20:19:35 +0000 (22:19 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 20 Jul 2009 20:19:35 +0000 (22:19 +0200)
Since we're no longer calculating clip regions for non-viewable windows
we need to calculate it when it goes viewable.

gdk/gdkwindow.c

index 764e3da54aedf0dad6e76587a73576f3d6ffddb7..a3718bb2fc6895c3bfa44c59127fcfcf9e1efb4e 100644 (file)
@@ -5786,6 +5786,9 @@ set_viewable (GdkWindowObject *w,
 
   w->viewable = val;
 
+  if (val)
+    recompute_visible_regions (w, FALSE, FALSE);
+
   for (l = w->children; l != NULL; l = l->next)
     {
       child = l->data;